import Vue from 'vue'
import VueRouter from 'vue-router'
// import HomeView from '../views/HomeView.vue'
// import MessageView from '../views/MessageView.vue'
// import CollectView from '../views/CollectView.vue'
// import ArticleView from '../views/ArticleView.vue'
// import personalCenter from '../views/personalCenterView.vue'
// import BlogView from '../views/BlogView.vue'
// import BloggerView from '../views/BloggerView.vue'
// import Forgetpwd from '../views/Forgetpwd.vue'
// import LoginView from '../views/LoginView.vue'
// import Problem from '../views/ProblemView.vue'
// import Problems from '../views/ProblemsView.vue'
// import Rank from '../views/RankView.vue'
// import Attention from '../views/AttentionView.vue'
// import SetView from '../views/SetView.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: resolve => require(['../views/HomeView.vue'],resolve),
  },
  {
    path: '/Blogger',
    name: 'Blogger',
    component: resolve => require(['../views/BloggerView.vue'],resolve),
  },
  {
    path: '/personalCenter',
    name: 'personalCenter',
    component: resolve => require(['../views/personalCenterView.vue'],resolve),
  },
  {
    path: '/message',
    name: 'message',
    component: resolve => require(['../views/MessageView.vue'],resolve),
  },
  {
    path: '/collect',
    name: 'collect',
    component: resolve => require(['../views/CollectView.vue'],resolve),
  },
  {
    path: '/publish_Article',
    name: 'publish_Article',
    component: resolve => require(['../views/ArticleView.vue'],resolve),
  },
  {
    path: '/BlogView',
    name: 'BlogView',
    component: resolve => require(['../views/BlogView.vue'],resolve),
  },
  {
    path: '/login',
    name: 'Login',
    component:resolve => require(['../views/LoginView.vue'],resolve),
  },
  {
    path:'/forgetpwd',
    name:'Forgetpwd',
    component:resolve => require(['../views/Forgetpwd.vue'],resolve),
  },
  {
    path:'/problem',
    name:'Problem',
    component:resolve => require(['../views/ProblemView.vue'],resolve),
  },
  {
    path:'/problems',
    name:'Problems',
    component:resolve => require(['../views/ProblemsView.vue'],resolve),
  },
  {
    path:'/rank',
    name:'Rank',
    component:resolve => require(['../views/RankView.vue'],resolve),
  },
  {
    path: '/attention',
    name: 'Attention',
    component:resolve => require(['../views/AttentionView.vue'],resolve),
  },
  {
    path:'/Set',
    name:'SetView',
    component:resolve => require(['../views/SetView.vue'],resolve),
  },
  {
    path:'/navigation',
    name:'navigation',
    component:resolve => require(['../views/navigation.vue'],resolve), 
  },
]

const router = new VueRouter({
  routes
})

export default router
